import 'package:json_annotation/json_annotation.dart';

part 'inspection.g.dart';

@JsonSerializable()
class InspectionModel {

  /// 标题
  String title;

  /// 任务编号
  String taskNo;

  /// 设备名称
  String name;

  /// 设备编号
  String code;

  /// 设备存放位置
  String location;

  InspectionModel(
      {required this.title,
        required this.taskNo,
        required this.name,
        required this.code,
        required this.location});

  factory InspectionModel.fromJson(Map<String, dynamic> json) => _$InspectionModelFromJson(json);

  Map<String, dynamic> toJson() => _$InspectionModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}